home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Applications
/
Demos_Demo folder
/
Demos_Info folder
/
Demos™ Demonstration
/
More Examples
/
Beta example
next >
Wrap
Text File
|
1994-01-07
|
2KB
|
95 lines
{ From user Brian Sterling, Project Beta_example at Fri, Jan 7, 1994 2:55 PM}
{ System Variables with non-default values: }
Samplesize := 200
Typechecking := 1
Checking := 1
Saveoptions := 2
Savevalues := 0
{ Non-default Time SysVar value: }
Time := [0,1,2]
Project Beta_example
Title: Beta distribution example
Description: An example of the use of the beta distribution.~
A coin is flipped repeatedly, and the probability of it landing heads up given the ~
results is calculated along the way.
Author: Brian Sterling
Date: Fri, Dec 31, 1993 1:55 PM
Saveauthor: Brian Sterling
Savedate: Fri, Jan 7, 1994 2:55 PM
Diagstate: 1,40,50,449,243,1
Fileinfo: 0,-1,1779,Project Beta_example,beta example
Getresource ,1
Objective Prob._of_h
Title: Prob. of heads
Description: Probability of heads, indexed by trial
Definition: Beta( Total_head, Total_tail )
Location: 328,136
Nodesize: 48,20
Valuestate: 1,38,53,443,279,1,PDFP
Graphsetup: Distresol:4~
Diststeps:1~
Symbolsize:6~
Linestyle:1~
Frame:1~
Grid:1~
Ticks:1~
Mesh:1~
Scales:1~
Frameauto:0~
Xminimum:0~
Xmaximum:1~
Yminimum:0~
Ymaximum:6~
Zminimum:0~
Zmaximum:30~
Xintervals:0~
Yintervals:6~
Reformval: [Trial ,Probability]
Index Trial
Title: trial
Description: An index for the trial number
Definition: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
Location: 88,40
Nodesize: 48,20
Chance Heads
Title: heads
Description: Trials resulting in heads
Definition: Table(Trial)(
1,0,1,1,0,0,1,1,0,1,1,1,1,0,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,1)
Location: 88,104
Nodesize: 48,20
Chance Tails
Title: tails
Description: Trials resulting in tails
Definition: if not heads then 1 else 0
Location: 88,160
Nodesize: 48,20
Valuestate: 1,104,114,416,303,0,MIDM
Chance Total_head
Title: total heads
Description: Cumulative number of heads
Definition: Cumulate( heads, trial )
Location: 208,104
Nodesize: 48,20
Valuestate: 1,136,146,416,303,1,MIDM
Chance Total_tail
Title: total tails
Description: Cumulative number of tails
Definition: Cumulate( tails, trial )
Location: 208,160
Nodesize: 48,20
Close Beta_example